package club.banyuan.phoy.cake;

/**
 * @author edz
 * @version 1.0
 * @date 2020/11/24 上午9:27
 */
public class OrderCake extends Cake{
private double weightInKG;
public  OrderCake(int n,double r,double weightInKG){
super(n,r);
this.weightInKG=weightInKG;
}

    @Override
    public double calcPrice() {
        return price*weightInKG;
    }
}
